home *** CD-ROM | disk | FTP | other *** search
Wrap
{SPEED} 1 {TITLE} Conditional Operation Test {DO} {DISPLAY} {DISPLAY} This is an example of the IF Statement which allows you to make decisions based on user response. You will be asked to select a number between 1 and 5, once selected, you will be displayed the results. {DISPLAYADD} {DISPLAYADD} Press ENTER, the SPACE BAR or click RUN... {PAUSE} {INPUT} Enter a Number between 1 and 5... {IFVAL} {VARIABLE} = 1 {THEN} Selected1 {IFVAL} {VARIABLE} = 2 {THEN} Selected2 {IFVAL} {VARIABLE} = 3 {THEN} Selected3 {IFVAL} {VARIABLE} = 4 {THEN} Selected4 {IFVAL} {VARIABLE} = 5 {THEN} Selected5 {IFVAL} {VARIABLE} < 1 {THEN} ErrorLessThan {IFVAL} {VARIABLE} > 5 {THEN} ErrorGreaterThan {SLEEP} 5 {CANCEL} Would you like to try again? {LOOP} {END} {SUB} ErrorLessThan {DISPLAYADD} Your entry was less than 1... {RETURN} {SUB} ErrorGreaterThan {DISPLAYADD} Your entry was Greater Than 5... {RETURN} {SUB} ReRunScript {SCRIPT} Sample Conditional.wzd {RETURN} {SUB} Selected1 {DISPLAYADD} You Selected 1! {RETURN} {SUB} Selected2 {DISPLAYADD} You Selected 2! {RETURN} {SUB} Selected3 {DISPLAYADD} You Selected 3! {RETURN} {SUB} Selected4 {DISPLAYADD} You Selected 4! {RETURN} {SUB} Selected5 {DISPLAYADD} You Selected 5! {RETURN} {END}